import request from '@/utils/request'
// 调取登录接口
export function loginApi(data) {
  return request.post('/sys/login', data)
}

// 调取用户信息接口
export const getUserInfoApi = () => {
  return request.get('/sys/profile')
}

export const addDatePasswordApi = (data) => {
  return request.put('/sys/user/updatePass', data)
}

